<!DOCTYPE html PUBLIC 
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
<%@taglib prefix="s" uri="/struts-tags" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title><s:text name="articleCollection.details" /></title>	
	<s:head />
</head>
<body>
	<s:if test="#session['user'] == null">
		<s:form namespace="/resource">
			<s:label key="resource.title" name="title"/>
			<s:label key="resource.author" name="author"/>
			<s:label key="resource.contributor" name="contributor"/>
			<s:label key="resource.cutter" name="cutter"/>
			<s:label key="resource.source" name="source"/>
			<s:label key="resource.format" name="format"/>
			<s:label key="resource.date" name="date"/>
			<s:label key="resource.description" name="description"/>
			<s:label key="resource.cduClassification" name="CDUClassification"/>
			<s:label key="resource.publisherName" name="publisherName"/>
			<s:label key="resource.publisherPlace" name="publisherPlace"/>
			<s:label key="resource.language" name="language"/>
			<s:label key="resource.country" name="country"/>
			<s:label key="articleCollection.ISBN" name="ISBN"/>
			<s:hidden name="resourceId" />
		</s:form>
	</s:if>	
	<s:elseif test="#session['user'].type.equals('LIBRARIAN')">
		<s:form action="updateArticlesCollection" namespace="/resource">
			<s:textfield key="resource.title" name="title"/>
			<s:textfield key="resource.author" name="author"/>
			<s:textfield key="resource.contributor" name="contributor"/>
			<s:textfield key="resource.cutter" name="cutter"/>
			<s:textfield key="resource.source" name="source"/>
			<s:textfield key="resource.format" name="format"/>
			<s:textfield key="resource.date" name="date"/>
			<s:textfield key="resource.description" name="description"/>
			<s:textfield key="resource.cduClassification" name="CDUClassification"/>
			<s:textfield key="resource.publisherName" name="publisherName"/>
			<s:textfield key="resource.publisherPlace" name="publisherPlace"/>
			<s:textfield key="resource.language" name="language"/>
			<s:textfield key="resource.country" name="country"/>
			<s:textfield key="articleCollection.ISBN" name="ISBN"/>
			<s:hidden name="resourceId" />
			<s:submit />
		</s:form>
	</s:elseif>
	<s:else>
			<s:form namespace="/resource">
				<s:label key="resource.title" name="title"/>
				<s:label key="resource.author" name="author"/>
				<s:label key="resource.contributor" name="contributor"/>
				<s:label key="resource.cutter" name="cutter"/>
				<s:label key="resource.source" name="source"/>
				<s:label key="resource.format" name="format"/>
				<s:label key="resource.date" name="date"/>
				<s:label key="resource.description" name="description"/>
				<s:label key="resource.cduClassification" name="CDUClassification"/>
				<s:label key="resource.publisherName" name="publisherName"/>
				<s:label key="resource.publisherPlace" name="publisherPlace"/>
				<s:label key="resource.language" name="language"/>
				<s:label key="resource.country" name="country"/>
				<s:label key="articleCollection.ISBN" name="ISBN"/>
				<s:hidden name="resourceId" />
			</s:form>
	</s:else>
	<s:url id="create_resource" action="chooseResource" namespace="/resource" includeParams="none"/>
	<li><a href="${create_resource}"><s:text name="Back" /></a></li> 	
</body>
</html>